package cn.tedu.mvc;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("car")
public class CarController {

    @RequestMapping("get")
    public Car get(){
        Car car = new Car(718,"保时捷","Cayman T","红色",641100.0);
//        car.setId(718);
//        car.setName("保时捷");
//        car.setType("Cayman T");
//        car.setColor("红色");
//        car.setPrice(641100.0);
        return car;
    }
}
